package cn.lyz.authority.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;

import javax.annotation.Generated;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wangxw
 * @since 2024-09-01
 */
@Getter
@Setter
@TableName("sys_role_menu")
public class SysRoleMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 角色ID
     */
    @TableId(value = "role_id",type = IdType.INPUT)
    private Long roleId;

    /**
     * 菜单id
     */
    @TableField(value = "menu_id",insertStrategy = FieldStrategy.ALWAYS)
    private Long menuId;

    @Override
    public String toString() {
        return "SysRoleMenu{" +
            "roleId = " + roleId +
            ", menuId = " + menuId +
        "}";
    }
}
